package com.yanqu.road.entity.player;

import com.yanqu.road.entity.DataObject;

/**
 * @author ：zfr
 * @date ：2021/3/9 15:28
 */
public class UserActivityScore extends DataObject {
    private int activityId;         //活动id
    private int activityType;       //活动类型
    private long userId;            //玩家id
    private int goodsId;            //积分道具id
    private long dayScore;          //每日积分
    private long totalScore;        //总积分
    private long lastResetTime;     //每日积分重置时间

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public int getActivityType() {
        return activityType;
    }

    public void setActivityType(int activityType) {
        this.activityType = activityType;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public int getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(int goodsId) {
        this.goodsId = goodsId;
    }

    public long getDayScore() {
        return dayScore;
    }

    public void setDayScore(long dayScore) {
        if (this.dayScore != dayScore) {
            this.dayScore = dayScore;
            setUpdateOption();
        }
    }

    public long getTotalScore() {
        return totalScore;
    }

    public void setTotalScore(long totalScore) {
        if (this.totalScore != totalScore) {
            this.totalScore = totalScore;
            setUpdateOption();
        }
    }

    public long getLastResetTime() {
        return lastResetTime;
    }

    public void setLastResetTime(long lastResetTime) {
        if (this.lastResetTime != lastResetTime) {
            this.lastResetTime = lastResetTime;
            setUpdateOption();
        }
    }
}
